import { BasicColumn } from "/@/components/Table";
import { FormSchema } from "/@/components/Table";
import { rules } from "/@/utils/helper/validator";
import { render } from "/@/utils/common/renderUtils";
import { getWeekMonthQuarterYear } from "/@/utils";
//列表数据
export const columns: BasicColumn[] = [
  {
    title: "录入时间",
    align: "center",
    dataIndex: "createTime"
  },
  {
    title: "记录编号",
    align: "center",
    dataIndex: "recordNo"
  }, {
    title: "线索来源",
    align: "center",
    dataIndex: "source_dictText"
  }, {
    title: "城市",
    align: "center",
    dataIndex: "city"
  },
  {
    title: "手机号",
    align: "center",
    dataIndex: "phone"
  },

  {
    title: "录入方式",
    align: "center",
    dataIndex: "writeMode_dictText"
  },


  {
    title: "品牌",
    align: "center",
    dataIndex: "brandName"
  },


  {
    title: "车系",
    align: "center",
    dataIndex: "seriesName"
  },


  {
    title: "车型",
    align: "center",
    dataIndex: "specName"
  },


  {
    title: "上牌时间",
    align: "center",
    dataIndex: "firstRegTime"
  },


  {
    title: "里程数",
    align: "center",
    dataIndex: "mileage"
  }


];

// 高级查询数据
export const superQuerySchema = {
  recordNo: { title: "记录编号", order: 0, view: "text", type: "string" },
  phone: { title: "手机号", order: 1, view: "text", type: "string" },
  city: { title: "城市", order: 2, view: "pca", type: "string" },
  writeMode: {
    title: "录入方式",
    order: 3,
    view: "list",
    type: "string",
    dictCode: "clue_write_mode"
  },
  source: { title: "线索来源", order: 4, view: "sel_user", type: "string" }
};
